package org.csu.webjpetstoreback.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Repository

public class Token {
    public String userid;
    public String password;
    public String email;
    public String firstname;
    public String lastname;
    public String status;
    public String addr1;
    public String addr2;
    public String city;
    public String state;
    public String zip;
    public String country;
    public String phone;
    public String favcategory;
    public String la;
    public String fa;
    public int mylistopt;
    public int banneropt;
    public Token (Account account,Signon signon,Profile profile){
        this.userid = signon.username;
        this.password = signon.password;
        this.email = account.email;
        this.firstname = account.firstname;
        this.lastname = account.lastname;
        this.status = account.status;
        this.addr1 = account.addr1;
        this.addr2 = account.addr2;
        this.city = account.city;
        this.state = account.state;
        this.zip = account.zip;
        this.country = account.country;
        this.phone = account.phone;
        this.favcategory = account.favcategory;
        this.la = profile.la;
        this.fa = profile.fa;
        this.mylistopt = profile.mylistopt;
        this.banneropt = profile.banneropt;
    }

}
